package rkdwogus7.basic;

public class J01_FoodNara {

	public static void main(String[] args) {
		String title; // 영수증 제목
		int soju; // 소주 단가
		int chiken; // 치킨 단가
		String liner; // 구분선
		int tot; // 총합계
		int tax; // 부가세
		int price; //과세합계
		int get; // 받은금액
		int change; // 잔돈
		String time; // 현재시간
		
		title = "[음식나라]";
		soju = 3000;
		chiken = 12000;
		liner = "-------------------------";
		tot = (2*soju) + chiken;
		tax = (tot/10);
		price = tot - tax;
		get = 50000;
		change = get - tot;
		time = "2014. 07. 07 \t14:35:24";
		
//System.out.println( "[음식나라]" );
//System.out.println( "----------------" );
//System.out.println( "소주\t2\t\t6000" );
		System.out.println( title );
		System.out.println( liner );
		System.out.println( "소주\t2\t" + (2*soju) );
		System.out.println( "너나치킨\t1\t" + (1*chiken) );
		System.out.println( liner );
		System.out.println( "과세합계\t \t" + price );
		System.out.println( "부가세\t  \t" + tax );
		System.out.println( liner );
		System.out.println( "총합계\t  \t" + tot );
		System.out.println( "받은금액\t  \t" + get );
		System.out.println( "잔돈\t \t" + change );
		System.out.println( liner );
		System.out.println( time );
		
	}

}
